package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-11-19:03
 */
public interface SysRoleService {

    PageInfo<SysRole> findByKeyword(Integer pageNum, Integer pageSize, String keyword);

    void addSysRole(SysRole sysRole);

    SysRole findById(Integer rid);

    void updateById(SysRole sysRole);

    void deleteById(Integer rid);

    List<SysRole> findAll();

    List<SysRole> findAllRoles(Integer userId);

    void assignMenus2Role(Long roleId, List<Long> menuIds);

}
